package org.letva.toink.model;

import javax.persistence.*;

/**
 * Every application has some sort of users doing something. Toink application has a built-in user entity
 * named ToinkUser. Every user has an id, username, password and email.
 */
@MappedSuperclass
public abstract class ToinkUser extends ToinkEntity {
    
    @Column(name = "USERNAME")
    private String username;

    @Column(name = "PASSWORD")
    private String password;

    @Column(name = "EMAIL")
    private String email;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
